<?php include 'header.phtml'; ?>
</div>
<div class="AppContent GridView">
	<div id="ProductBreadCrumbView" class="BreadCrumbView">
		<div class="breadcrumbs">
			<a href="<?php echo $this->basePath();?>/product/">Products</a> &#47;
			<span>Create Product</span>
		</div>
	</div>
	<div id="ProductEditAndDetailsView"
		class="SecuredEditAndDetailsView EditAndDetailsView DetailsView ModelView ConfigurableMetadataView MetadataView">
		<div class="wrapper">
			<h1>
				<span class="truncated-title"><span class="ellipsis-content">Create
						Product</span></span>
			</h1>
			<div class="wide form">
				<form
					onSubmit="js:return $(this).attachLoadingOnSubmit(&quot;edit-form&quot;)"
					id="edit-form" action="<?php echo $this->basePath();?>/product/add"
					method="post">
					<div style="display: none">
						<input type="hidden"
							value="16c73dc51f113b6d86c512177237d6c6d4759db6"
							name="YII_CSRF_TOKEN" />
					</div>
					<div class="attributesContainer">
						<div class="left-column">
							<div class="panel">
								<table class="form-fields">
									<colgroup>
										<col class="col-0" />
										<col class="col-1" />
									</colgroup>
									<tbody>
										<tr>
											<th><label for="Product_name" class="required">Name <span
													class="required">*</span>
											</label></th>
											<td colspan="1">
                                                <?php
													echo $this->formInput($form->get('name'));
												?>
                                            </td>
										</tr>
										<tr>
											<th><label for="Product_quantity" class="required">Description
													<span class="required">*</span>
											</label></th>
											<td colspan="1">
                                                <?php
													echo $this->formInput($form->get('description'));
												?>
                                            </td>
										</tr>

										<tr>
											<th><label for="Product_account_id">Quantity</label></th>
											<td colspan="1">
                                                <?php
													echo $this->formInput($form->get('quantity'));
												?>
                                            </td>
										</tr>
										<tr>
											<th><label for="Product_account_id">Type</label></th>
											<td colspan="1">
                                               <?php
													echo $this->formInput($form->get('type'));
												?>
                                            </td>
										</tr>
										<tr>
											<th><label for="Product_contact_id">Price Frequency</label></th>
											<td colspan="1">
                                                 <?php
													echo $this->formInput($form->get('pricefrequency'));
												?>
                                            </td>
										</tr>
										<tr>
											<th><label for="Product_opportunity_id">Owned Securable Item
													ID</label></th>
											<td colspan="1">
                                               <?php
													echo $this->formInput($form->get('ownedsecurableitem_id'));
												?>
                                            </td>
										</tr>
										<tr>
											<th><label>Account ID</label></th>
											<td colspan="1">
                                                 <?php
													echo $this->formInput($form->get('account_id'));
												?>
                                            </td>
										</tr>
										<tr>
											<th><label for="Product_type_value" class="required">Contact
													ID <span class="required">*</span>
											</label></th>
											<td colspan="1">
                                                <?php
													echo $this->formInput($form->get('contact_id'));
												?>
                                            </td>


										</tr>
										<tr>
											<th><label for="Product_priceFrequency_value"
												class="required">Opportunity ID <span class="required">*</span>
											</label></th>
											<td colspan="1">
                                              <?php
													echo $this->formInput($form->get('opportunity_id'));
												?>
                                            </td>
										</tr>
										<tr>
											<th><label for="Product_sellPrice_value" class="required">Product
													Template ID<span class="required">*</span>
											</label></th>
											<td colspan="1">
                                                <?php
													echo $this->formInput($form->get('producttemplate_id'));
												?>
                                            </td>
										</tr>
										<tr>
											<th><label for="Product_stage_value" class="required">Stage
													Customfield ID<span class="required">*</span>
											</label></th>
											<td colspan="1">
                                                <?php
													echo $this->formInput($form->get('stage_customfield_id'));
												?>
                                            </td>
										</tr>
										<tr>
											<th><label for="Product_stage_value" class="required">Sell
													Price Currency Value ID<span class="required">*</span>
											</label></th>
											<td colspan="1">
                                                 <?php
													echo $this->formInput($form->get('sellprice_currencyvalue_id'));
												?>
                                            </td>
										</tr>
									</tbody>
								</table>
							</div>
						</div>
						<div class="right-column">
							<div class="right-side-edit-view-panel">
								<h3>Rights and Permissions</h3>
								<div id="owner-box">
									<label for="Product_owner_id" class="required">Owner <span
										class="required">*</span>
									</label> <input name="Product[owner][id]" id="Product_owner_id"
										value="1" type="hidden" />
									<div class="has-model-select">
										<input
											onblur="clearIdFromAutoCompleteField($(this).val(), &#039;Product_owner_id&#039;);"
											id="Product_owner_name" type="text" value="Super User"
											name="Product_owner_name" /> <a id="Product_owner_SelectLink"
											href="#"> <span class="model-select-icon"> </span><span
											class="z-spinner"> </span></a>
									</div>
								</div>
								<label>Who can read and write</label>
								<div class="radio-input">
									<input id="Product_explicitReadWriteModelPermissions_type_0"
										value="" type="radio"
										name="Product[explicitReadWriteModelPermissions][type]" /> <label
										for="Product_explicitReadWriteModelPermissions_type_0">Owner</label>
								</div>
								<div class="radio-input">
									<input id="Product_explicitReadWriteModelPermissions_type_1"
										value="2" type="radio"
										name="Product[explicitReadWriteModelPermissions][type]" /> <label
										for="Product_explicitReadWriteModelPermissions_type_1">Owner
										and users in</label>&#160;
									<div class="hasDropDown">
										<span class="select-arrow"></span> <select
											id="Product_explicitReadWriteModelPermissions_nonEveryoneGroup"
											onclick="document.getElementById(&quot;Product_explicitReadWriteModelPermissions_type_1&quot;).checked=&quot;checked&quot;;"
											name="Product[explicitReadWriteModelPermissions][nonEveryoneGroup]">
											<option value="3">East</option>
											<option value="5">East Channel Sales</option>
											<option value="7">East Direct Sales</option>
											<option value="4">West</option>
											<option value="6">West Channel Sales</option>
											<option value="8">West Direct Sales</option>
										</select>
									</div>
								</div>
								<div class="radio-input">
									<input id="Product_explicitReadWriteModelPermissions_type_2"
										value="1" checked="checked" type="radio"
										name="Product[explicitReadWriteModelPermissions][type]" /> <label
										for="Product_explicitReadWriteModelPermissions_type_2">Everyone</label>
								</div>
							</div>
						</div>
					</div>
					<div class="float-bar">
						<div class="view-toolbar-container clearfix dock">
							<div class="form-toolbar">
								<a id="CancelLinkActionElement--25-yt2"
									href="/demos/stable/app/index.php/products/default"> <span
									class="z-label">Cancel</span>
								</a>
                                <?php
								 $form = $this->form;
								 $form->setAttribute('action', $this->url(
									 'product',
									 array(
										 'action' => 'edit',
										 'id'     => $this->id,
									 )
								 ));
								 $form->prepare();

									echo $this->formHidden($form->get('id'));
									//echo $this->formInput($form->get('search'));
									echo $this->formSubmit($form->get('submit'));
								?>
								</div>
						</div>
					</div>
				</form>
				<div id="modalContainer-edit-form"></div>

			</div>
		</div>

	</div>
</div>
<div id="FlashMessageView">
	<div id="FlashMessageBar"></div>

</div>

</div>
<div id="ModalContainerView">
	<div id="modalContainer"></div>

</div>
<div id="ModalGameNotificationContainerView"></div>
<div id="GameCoinContainerView"></div>
<div id="FooterView">
	<a href="http://www.zurmo.com" id="credit-link" class="clearfix"> <span>Copyright
			&#169; Zurmo Inc., 2013. All rights reserved.</span></a>
	<div class="ui-chooser">
		<a class="icon-mobile"
			href="/demos/stable/app/index.php/zurmo/default/userInterface?userInterface=Mobile">
			<span>Show Mobile</span>
		</a><a class="icon-desktop active"
			href="/demos/stable/app/index.php/zurmo/default/userInterface?userInterface=Desktop">
			<span>Show Full</span>
		</a>
	</div>
</div>
</div>
</div>
</div>
<script type="text/javascript"
	src="/demos/stable/app/assets/2ec0dacb/ProductTemplateUtils.js">
</script>
<script type="text/javascript">
    /*<![CDATA[*/